did this program work correctly